package class2;

import java.util.Collection;
import java.util.HashMap;

public class Register {
    static final HashMap<String, BaseIndexDao> daoMap=new HashMap<>();
    public static void registerDaoMap(String daoName) {
        daoMap.put(daoName,new BaseIndexDao());
    }
    public static BaseIndexDao get(String daoName) {
        return daoMap.get(daoName);
    }
    public static Collection<BaseIndexDao> getAllDao(){
        return daoMap.values();
    }
}
